package com.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.service.IBService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Reference
    private IBService ibService;

    @RequestMapping("/hello")
    public  String  hello(int x, int y)
    {
        int sum = ibService.add(x,y);
        return sum+"";
    }

}
